﻿using System.Collections.Generic;
using Xunit.Abstractions;

#if XUNIT_CORE_DLL

namespace Xunit.Sdk
#else
namespace Xunit
#endif
{
	/// <summary>
	/// Default implementation of <see cref="ITestMethodMessage"/>.
	/// </summary>
	public class TestMethodMessage : TestClassMessage, ITestMethodMessage
	{
		/// <summary>
		/// Initializes a new instance of the <see cref="TestMethodMessage"/> class.
		/// </summary>
		public TestMethodMessage(IEnumerable<ITestCase> testCases, ITestMethod testMethod)
			: base(testCases, testMethod.TestClass)
		{
			TestMethod = testMethod;
		}

		/// <inheritdoc/>
		public ITestMethod TestMethod { get; set; }
	}
}